﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform
{
    /// <summary>
    /// 标准模型对应用语
    /// </summary>
    public class DataModelPropertyDict : Entity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 
        /// </summary>
        public Guid DataModelDictId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DataModelDict DataModelDict { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid StdPhrDictId { get; set; }

        /// <summary>
        /// 标准用语
        /// </summary>
        public StdPhrDict StdPhrDict { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int Srtno { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool PkFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool NullableFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string? Exp { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        public DataModelPropertyDict()
        {

        }

        public DataModelPropertyDict(Guid dataModelDictId, Guid stdPhrDictId, bool pkFlag
            , bool nullableFlag, int srtno)
        {
            DataModelDictId = dataModelDictId;
            PkFlag = pkFlag;
            StdPhrDictId = stdPhrDictId;
            NullableFlag = nullableFlag;
            Srtno = srtno;
        }
    }
}
